package com.chj.controllers;

import java.util.Random;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.chj.feigns.TestServiceFeignClient;

@RestController
public class TestController {

	@Autowired
	TestServiceFeignClient testService;

	@GetMapping("/test1")
	public String test1() {
		return testService.test1("test" + new Random().nextInt(10));
	}

	@GetMapping("/test2")
	public String test2() {
		return testService.test2("test" + new Random().nextInt(10));
	}

}
